// 表单属性
export const formConf = {
    formRef: 'antForm',
    formModel: 'formData',
    labelAlign: 'right',
    formRules: 'rules',
    gutter: 24,
    span: 24,
    formBtns: true,
    formVersion: '1.0' // 表单版本
}
// 基础组件
export const baseCompsList = [
    {
        // 自定义配置
        __config__: {
            label: '单行文本',
            labelWidth: null,
            showLabel: true,
            changeTag: true,
            tag: 'a-input',
            tagIcon: 'input',
            defaultValue: undefined,
            required: true,
            layout: 'colFormItem',
            span: 8,
            document: 'https://www.antdv.com/components/input-cn',
            // 正则校验规则
            regList: []
        },
        prefix: '', // 前缀
        suffix: '', // 后缀
        placeholder: '请输入',
        style: { width: '100%' },
        allowClear: true,
        maxlength: null,
        showCount: false,
        readonly: false,
        disabled: false
    },
    {
        __config__: {
            label: '多行文本',
            labelWidth: null,
            showLabel: true,
            tag: 'a-textarea',
            tagIcon: 'textarea',
            defaultValue: undefined,
            required: true,
            layout: 'colFormItem',
            span: 24,
            regList: [],
            changeTag: true,
            document: 'https://www.antdv.com/components/input-cn#components-input-demo-textarea'
        },
        type: 'textarea',
        placeholder: '请输入',
        autoSize: {
            minRows: 1,
            maxRows: 1
        },
        style: { width: '100%' },
        maxlength: null,
        showCount: false,
        readonly: false,
        disabled: false
    },
    {
        __config__: {
            label: '密码',
            showLabel: true,
            labelWidth: null,
            changeTag: true,
            tag: 'a-input-password',
            tagIcon: 'password',
            defaultValue: undefined,
            layout: 'colFormItem',
            span: 24,
            required: true,
            regList: [],
            document: 'https://www.antdv.com/components/input-cn#components-input-demo-password-input'
        },
        prefix: '', // 前缀
        suffix: '', // 后缀
        placeholder: '请输入',
        'show-password': true,
        style: { width: '100%' },
        allowClear: true,
        maxlength: null,
        showCount: false,
        readonly: false,
        disabled: false
    },
    {
        __config__: {
            label: '计数器',
            showLabel: true,
            changeTag: true,
            labelWidth: null,
            tag: 'a-input-number',
            tagIcon: 'number',
            defaultValue: undefined,
            span: 24,
            layout: 'colFormItem',
            required: true,
            regList: [],
            document: 'https://www.antdv.com/components/input-number-cn'
        },
        style: { width: '100%' },
        placeholder: '',
        min: undefined,
        max: undefined,
        step: 1,
        precision: undefined,
        disabled: false
    },
    {
        __config__: {
            label: '下拉选择',
            showLabel: true,
            labelWidth: null,
            tag: 'a-select',
            tagIcon: 'select',
            layout: 'colFormItem',
            span: 24,
            required: true,
            regList: [],
            changeTag: true,
            document: 'https://www.antdv.com/components/select-cn'
        },
        options: [{
            label: '选项一',
            value: 1
        }, {
            label: '选项二',
            value: 2
        }],
        placeholder: '请选择',
        style: { width: '100%' },
        allowClear: true,
        disabled: false,
        filterable: false,
        multiple: false
    },
    {
        __config__: {
            label: '日期选择',
            tag: 'a-date-picker',
            tagIcon: 'date',
            defaultValue: null,
            showLabel: true,
            labelWidth: null,
            span: 24,
            layout: 'colFormItem',
            required: true,
            regList: [],
            changeTag: true,
            document: 'https://www.antdv.com/components/date-picker-cn'
        },
        placeholder: '请选择',
        picker: null,
        style: { width: '100%' },
        disabled: false,
        allowClear: true,
        format: 'YYYY-MM-DD',
        valueFormat: 'YYYY-MM-DD',
        readonly: false
    },
    {
        __config__: {
            label: '日期范围',
            tag: 'a-range-picker',
            tagIcon: 'date-range',
            defaultValue: [],
            span: 24,
            showLabel: true,
            labelWidth: null,
            required: true,
            layout: 'colFormItem',
            regList: [],
            changeTag: true,
            document: 'https://www.antdv.com/components/date-picker-cn#components-date-picker-demo-range-picker'
        },
        style: { width: '100%' },
        picker: 'date',
        disabled: false,
        allowClear: true,
        format: 'YYYY-MM-DD',
        valueFormat: 'YYYY-MM-DD',
        readonly: false
    },
]
